package com.vegetable.modules.entity.outbound.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ExcelTarget("dynamicColumn")
public class DynamicColumn {
    @Excel(name = "字段名", orderNum = "0", width = 20)
    private String key;

    @Excel(name = "值", orderNum = "1", width = 20)
    private BigDecimal value;

    public DynamicColumn() {
    }

    public DynamicColumn(String key, BigDecimal value) {
        this.key = key;
        this.value = value;
    }
}
